<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>广菲克SMARTJ</title>
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/ionicons/4.4.8/css/ionicons.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/select2/4.0.6-rc.1/css/select2.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/admin-lte/2.4.0/css/AdminLTE.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/admin-lte/2.4.0/css/skins/skin-blue.min.css">
    <!--<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">-->
    <link rel="stylesheet" href="https://cdn.bootcss.com/datatables/1.10.19/css/dataTables.bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/dragula/3.7.2/dragula.min.css">
    <link rel="stylesheet" href="src/css/loading.css">
    <link rel="stylesheet" href="src/css/sweetalert.css">
    <!-- daterange picker -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap-daterangepicker/3.0.3/daterangepicker.min.css">
    <link rel="stylesheet" href="src/css/index.css">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/admin-lte/2.4.0/js/adminlte.min.js"></script>
    <script src="https://cdn.bootcss.com/datatables/1.10.19/js/jquery.dataTables.min.js"></script>
    <script src="https://cdn.bootcss.com/datatables/1.10.19/js/dataTables.bootstrap.min.js"></script>
    <script src="https://cdn.bootcss.com/echarts/4.2.0-rc.2/echarts.min.js"></script>
    <script src='https://cdn.bootcss.com/dragula/3.7.2/dragula.min.js'></script>
    <!--<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>-->
    <!--<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>-->
    <script src="src/js/index.js"></script>
    <script src="src/js/entity.js"></script>
    <script src="src/js/JsonExportExcel.min.js"></script>
    <script src="src/js/sweetalert.min.js"></script>
    <script src="src/js/upload.js"></script>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<header class="main-header">
    <a href="question_list.html" class="logo" style="background-color: #FFBA00">
        <span class="logo-mini">SMARTJ</span>
        <span class="logo-lg">广菲克SMARTJ</span>
    </a>
    <nav class="navbar navbar-static-top" role="navigation" style="background-color: #0B1113">
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
            <span class="sr-only">SMARTJ</span>
        </a>
        <div class="navbar-custom-menu">
            <ul class="nav navbar-nav">
                <li class="dropdown user user-menu">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <img src="src/plugins/AdminLTE-2.4.0-rc/dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
                        <span onclick="loginOut();" class="hidden-xs">退出</span>
                    </a>
                    <ul class="dropdown-menu">
                        <li class="user-header" style="background-color: #0B1113;">
                            <img src="src/plugins/AdminLTE-2.4.0-rc/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                            <p>
                                管理员
                                <!--<small>Member since Nov. 2012</small>-->
                            </p>
                        </li>
                        <li class="user-body">
                            <div class="row">
                                <div class="col-xs-4 text-center">
                                    <a href="#">功能(暂无)</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">功能(暂无)</a>
                                </div>
                                <div class="col-xs-4 text-center">
                                    <a href="#">功能(暂无)</a>
                                </div>
                            </div>
                        </li>
                        <li class="user-footer">
                            <!--<div class="pull-left">-->
                            <!--<a href="#" class="btn btn-default btn-flat">Profile</a>-->
                            <!--</div>-->
                            <div class="pull-right">
                                <a href="#" onclick="loginOut();" class="btn btn-default btn-flat">退出</a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
</header>
<aside class="main-sidebar">
    <section class="sidebar">
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">操作选项</li>
            <li class="treeview active menu-open">
                <a href="javascript:void(0);">
                    <i class="fa fa-dashboard"></i>
                    <span>问答管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li class="active">
                        <a href="javascript:void(0)" id="greeting" data-data="question/greeting.html"><i class="fa fa-circle-o"></i>欢迎语编辑</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="question_list" data-data="question/question_list.html"><i class="fa fa-circle-o"></i>问题列表</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="answer" data-data="answer/index.html"><i class="fa fa-circle-o"></i>答案列表</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="keyword_manager" data-data="question/keyword_manager.html"><i class="fa fa-circle-o"></i>关键字管理</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="unanswered" data-data="question/unanswered.html"><i class="fa fa-circle-o"></i>未匹配问题管理</a>
                    </li>
                </ul>
            </li>
            <!--<li class="treeview">-->
                <!--<a href="javascript:void(0)">-->
                    <!--<i class="fa fa-files-o"></i>-->
                    <!--<span class="span">问卷管理</span>-->
                    <!--<span class="pull-right-container">-->
                        <!--<i class="fa fa-angle-left pull-right"></i>-->
                    <!--</span>-->
                <!--</a>-->
                <!--<ul class="treeview-menu">-->
                    <!--<li>-->
                        <!--<a href="javascript:void(0)" id="questionnaire_list" data-data="questionnaire/questionnaire_list.html"><i class="fa fa-circle-o"></i>客户问卷</a>-->
                    <!--</li>-->
                <!--</ul>-->
            <!--</li>-->
            <li class="treeview">
                <a href="javascript:void(0)">
                    <i class="fa fa-th"></i>
                    <span class="span">设备管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="javascript:void(0)" id="device_list" data-data="device/device_list.html"><i class="fa fa-circle-o"></i>设备列表</a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="javascript:void(0)">
                    <i class="fa fa-edit"></i>
                    <span class="span">4S店管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="javascript:void(0)" id="dealer_list" data-data="dealer/dealer_list.html"><i class="fa fa-circle-o"></i>4S店列表</a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="javascript:void(0)">
                    <i class="fa fa-edit"></i>
                    <span class="span">轮播图管理</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="javascript:void(0)" id="banner_list" data-data="banner/banner_list.html"><i class="fa fa-circle-o"></i>轮播图列表</a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="javascript:void(0)">
                    <i class="fa fa-pie-chart"></i>
                    <span class="span">统计分析</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li>
                        <a href="javascript:void(0)" id="unmatch_question" data-data="statistical/unmatch_question.html"><i class="fa fa-circle-o"></i>未识别问题</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="statistical_keyword" data-data="statistical/statistical_keyword.html"><i class="fa fa-circle-o"></i>关键字匹配数量统计</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="often_keyword_question" data-data="statistical/often_keyword_question.html"><i class="fa fa-circle-o"></i>首次匹配到关键字统计</a>
                    </li>
                    <li>
                        <a href="javascript:void(0)" id="circuitry_question" data-data="statistical/circuitry_question.html"><i class="fa fa-circle-o"></i>问题线路统计</a>
                    </li>
                </ul>
            </li>
        </ul>
    </section>
</aside>
<div class="content-wrapper">
    <section class="content container-fluid">
        <div id="iframe"></div>
    </section>
</div>
<footer class="main-footer" style="text-align: center">
    <strong>Copyright © 2017 <a href="javascript:void(0)">广菲克</a>.</strong> 版权所有.
</footer>
</body>

<script>
    $(function(){
        /**
         * content区域高度设置
         */
        var height=document.documentElement.clientHeight-$('header.main-header').css('height').replace('px','')-$('footer.main-footer').css('height').replace('px','')-30;
        $('#iframe').css('height',height+'px');
        $(window).on('resize',function(){
            height=document.documentElement.clientHeight-$('header.main-header').css('height').replace('px','')-$('footer.main-footer').css('height').replace('px','')-30;
            $('#iframe').css('height',height+'px');
        })

        /**
         * 页面数据初始化
         */
        if(!sessionStorage.getItem('firstUrl') || sessionStorage.getItem('firstUrl') === 'null' || sessionStorage.getItem('firstUrl') === 'undefined' || !sessionStorage.getItem('obj') || sessionStorage.getItem('obj') === 'null' || sessionStorage.getItem('obj') === 'undefined') {
            sessionStorage.setItem('firstUrl', 'question/greeting.html');
            sessionStorage.setItem('obj','greeting')
        }
        initPage(sessionStorage.getItem('obj'), sessionStorage.getItem('firstUrl'));

        /**
         * 点击菜单
         */
        // $('.treeview').on('click',function () {
        //     $('.treeview').removeClass('active')
        //     $(this).addClass('active')
        // })
        $('.treeview-menu').on('click','a',function(){
            initPage($(this).attr('id'),$(this).data('data'));
        })
    })
</script>
<!-- Select2 -->
<script src="https://cdn.bootcss.com/select2/4.0.6-rc.1/js/select2.full.min.js"></script>
<!-- InputMask -->
<script src="https://cdn.bootcss.com/jquery.inputmask/3.1.63/inputmask/jquery.inputmask.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.inputmask/3.1.63/inputmask/jquery.inputmask.date.extensions.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.inputmask/3.1.63/inputmask/jquery.inputmask.extensions.js"></script>
<!-- date-range-picker -->
<script src="https://cdn.bootcss.com/bootstrap-daterangepicker/3.0.3/moment.min.js"></script>
<script src="https://cdn.bootcss.com/bootstrap-daterangepicker/3.0.3/daterangepicker.min.js"></script>
<!-- bootstrap datepicker -->
<script src="https://cdn.bootcss.com/bootstrap-daterangepicker/3.0.3/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="https://cdn.bootcss.com/bootstrap-colorpicker/3.0.0-beta.3/js/bootstrap-colorpicker.min.js"></script>
<!-- bootstrap time picker -->
<script src="https://cdn.bootcss.com/bootstrap-datetimepicker/4.17.47/js/bootstrap-datetimepicker.min.js"></script>
<!-- SlimScroll -->
<script src="https://cdn.bootcss.com/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js"></script>
<!-- iCheck 1.0.1 -->
<script src="https://cdn.bootcss.com/iCheck/1.0.2/icheck.min.js"></script>
<!-- FastClick -->
<script src="https://cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="src/plugins/AdminLTE-2.4.0-rc/dist/js/demo.js"></script>
</html>
